package com.odianyun.hello.model.PO;

import com.odianyun.hello.model.PO.ArticleExtends.CommentInfo;
import com.odianyun.hello.model.PO.ArticleExtends.LikeInfo;
import org.springframework.data.annotation.Id;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

public class Article implements Serializable {

    private static final long serialVersionUID = -2103300560651194713L;
    @Id
    private String id;

    private String title;
    private String author;
    private Date createTime;
    private String context;
    private Long viewNum;
    private List<LikeInfo> likeInfo;
    private List<CommentInfo> commentInfo;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getContext() {
        return context;
    }

    public void setContext(String context) {
        this.context = context;
    }

    public Long getViewNum() {
        return viewNum;
    }

    public void setViewNum(Long viewNum) {
        this.viewNum = viewNum;
    }

    public List<LikeInfo> getLikeInfo() {
        return likeInfo;
    }

    public void setLikeInfo(List<LikeInfo> likeInfo) {
        this.likeInfo = likeInfo;
    }

    public List<CommentInfo> getCommentInfo() {
        return commentInfo;
    }

    public void setCommentInfo(List<CommentInfo> commentInfo) {
        this.commentInfo = commentInfo;
    }
}
